package cn.org.xiaosheng.server.service;


import cn.org.xiaosheng.server.annotation.RpcServer;
import com.google.gson.JsonObject;

@RpcServer
public class HelloServiceImpl implements HelloService{
    @Override
    public JsonObject sayHello(String name) {
//    return "XiaoSheng say 你好, " + name;
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("result", "XiaoSheng say 你好, " + name);
        return jsonObject;
    }

    @Override
    public JsonObject sayHello2(String name) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("HelloName", name);
        return jsonObject;
    }
}
